package com.stoken.service;

import java.util.List;

import com.stoken.domain.MemberBaseInfo;
import com.stoken.domain.MemberRegisterInfo;
import com.stoken.web.control.vo.Message;
import com.symbio.service.impl.BaseService;

public interface MemberBaseInfoService extends BaseService<MemberBaseInfo, Long>{
    
	//更新基础用户信息
	public void updateMBI(MemberBaseInfo mbi);
    
	//更新电话
	public void updatePhone(String phone, Long mid);

	//更改一级密码
	public void updateFPassword(long id, String fPassword);

	//更改二级密码
	public void updateSPassword(long id, String sPassword);

	//更改三级密码
	public void updateTPassword(long id, String tPassword);

	//查看二级密码是否正常
	public boolean findSercondP(long id, String sPassword);

	public void saveRegisterInfo(MemberRegisterInfo registerInfo, MemberBaseInfo baseInfo);

	public MemberBaseInfo findBaseByUserName(String string, String baseUsername);
	
	/**
	 * 验证登陆
	 * @param account
	 * @param password
	 * @return
	 */
	public MemberBaseInfo verificationLogin(String account,String password);

	/**
	 * 激活会员
	 * @param userAccount
	 * @param activeName
	 * @param grade
	 * @return
	 */
	public Message updateActiveMember(String userAccount, String activeName,
			String grade);

	/**
	 * 查看下4级的人员列表
	 * @param username
	 * @return 
	 */
	public List<MemberRegisterInfo> findServerList(String username,String level);
	
	/**
	 * 根据账户获取用户信息
	 * @param account
	 * @return
	 */
	public MemberBaseInfo getMemberBaseInfoByAccount(String account);
	
}
